package org.codefinger.dao.util.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

public class DateRSGetter implements ResultSetGetter {

	public static DateRSGetter	INSTANCE	= new DateRSGetter();

	private DateRSGetter() {

	}

	@Override
	public Object getResult(ResultSet resultSet, int index) throws SQLException {
		return new Date(resultSet.getTimestamp(index).getTime());
	}

}
